import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        
    }
    public static void main1(String[] args) {
//        String s1 = "hello world";
//        System.out.println(s1);
//
//        String s2 = new String("hello lch");
//        System.out.println(s2);
//
//        char[] array = {'h', 'e', 'l', 'l', 'o'};
//        String s3 = new String(array);
//        System.out.println(s3);

//        String s1 = new String("hello");
//        String s2 = new String("world");
//        String s3 = s1;
//
//        System.out.println(s1.length());
//        System.out.println(s1.isEmpty());

//        int a = 10;
//        int b = 20;
//        int c = 10;
//        System.out.println(a == b);
//        System.out.println(b == c);
//
//        String s1 = new String("hello");
//        String s2 = new String("world");
//        String s3 = new String("world");
//        String s4 = s1;
//
//        System.out.println(s1 == s2);
//        System.out.println(s2 == s3);
//        System.out.println(s1 == s4);
//
//
//        System.out.println();
//        System.out.println( s1.equals(s2));
//        System.out.println( s1.equals(s3));
//        System.out.println( s2.equals(s3));

        String s1 = new String("abc");
        String s2 = new String("ac");
        String s3 = new String("abc");
        String s4 = new String("abcdef");
        System.out.println(s1.compareTo(s2));
        System.out.println(s1.compareTo(s3));
        System.out.println(s1.compareTo(s4));

        Scanner scanner = new Scanner(System.in);
        int k = scanner.nextInt();
        System.out.println(k);

        System.out.println(s1.equals(s3));

        System.out.println();
        String s5 = new String("efd");
        String s6 = new String("Efd");
        // 忽略大小写
        System.out.println(s5.equalsIgnoreCase(s6));
    }
}
